]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
Fix positioning of the Calendar on multihead
authorOwen W. Taylor <otaylor@fishsoup.net>
Wed, 7 Oct 2009 18:52:18 +0000 (14:52 -0400)
committerOwen W. Taylor <otaylor@fishsoup.net>
Wed, 7 Oct 2009 18:52:49 +0000 (14:52 -0400)
Parens were in the wrong place, resulting in the calendar not
being properly centered on the primary monitor.

https://bugzilla.gnome.org/show_bug.cgi?id=597078

js/ui/panel.js

index becd8446fdbe4391fa934c4040c7592a84eccec5..7917e34edcbb0947217fd5ccc274d94175a09316 100644 (file)
@@ -546,7 +546,7 @@ CalendarPopup.prototype = {
         // Reset the calendar to today's date
         this.calendar.setDate(new Date());
 
-        this.actor.x = Math.round((panelActor.x + panelActor.width - this.actor.width) / 2);
+        this.actor.x = Math.round(panelActor.x + (panelActor.width - this.actor.width) / 2);
         this.actor.lower(panelActor);
         this.actor.show();
         Tweener.addTween(this.actor,